<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            box-sizing: content-box;
            margin: 0 auto;
            padding: 0 auto;
            background: red;
        }
       .bodyBox{
            position: relative;
            width: 100%;
           height: 90%;
        }
        img{
            position:absolute;
            left:0px;
            top:0px;
            z-index:-1;
        }
        /*img[src=""],img:not([src]){

            opacity:0;

        }*/
    </style>

</head>
<body>
    <div class="bodyBox">

    </div>
        <div id="Layer1" style="position:absolute; width:100%; height:100%; z-index:-1;background: orange;font-size:0;">
            <img src="dist/img/boxBack.png" style="width: 100%;height: 90%;display: block" />
        </div>
    <footer style="position: absolute;width: 100%;height: 10%;z-index: 0;background: yellow;bottom: 0px">

    </footer>
    <div style="background: blue;width: 100px;height: 100px"></div>
<!--<div class="boxBack">
</div>-->
</body>
</html>